package com.pxst.bank.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pxst.bank.entity.SysBankServiceTimeEntity;
import com.pxst.bank.req.ServiceTimeAddReq;
import com.pxst.bank.req.ServiceTimeReq;
import com.pxst.bank.resp.SysBankServiceTimeResp;
import com.pxst.resp.ApiResp;

import java.util.List;

public interface SysBankServiceTimeService extends IService<SysBankServiceTimeEntity> {
    /**
     * 暂停时间设定-列表（条件查询）
     * @param serviceTimeReq 查询请求类
     * @return
     */
    ApiResp<List<SysBankServiceTimeResp>> getServiceTimeByCondition(ServiceTimeReq serviceTimeReq);

    /**
     * 修改状态
     * @param id
     * @return
     */
    ApiResp<String> updateStatusById(Long id, Integer status);

    /**
     * 暂停时间表设定-新增
     * @param serviceTimeAddReq
     * @return
     */
    ApiResp<SysBankServiceTimeEntity> saveServiceTime(ServiceTimeAddReq serviceTimeAddReq);

    /**
     * 暂停时间表设定-删除
     * @param id
     * @return
     */
    ApiResp<String> deleteById(Long id);
}
